//
//  SwitchViewController.h
//  FreeSWITCH_Console
//
//  Created by Christopher Danielson on 4/6/09.
//  Copyright 2009 MaxPowerSoft, LLC. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UserSetting.h"

#define MODE_MAINMENU	0
#define MODE_SETTINGS	3
#define MODE_CONSOLE	5

@class MainMenuViewController;
@class EditSettingsViewController;
@class FunctionSettingsViewController;
@class ConsoleViewController;
@class UserSettingDetailController;

@interface SwitchViewController : UIViewController {
	MainMenuViewController *mainMenuViewController;
	UINavigationBar *mainMenuNavigationBar;
	UIToolbar *mainMenuToolBar;
	
	//UIToolbar *consoleToolBar;
	UINavigationBar *consoleNavBar;
	
	EditSettingsViewController *editSettingsViewController;
	FunctionSettingsViewController *functionSettingsViewController;
	ConsoleViewController *consoleViewController;
	
	NSInteger currentMode;
	UserSetting *userSetting;
}

@property (nonatomic, retain) MainMenuViewController *mainMenuViewController;
@property (nonatomic, retain) UINavigationBar *mainMenuNavigationBar;
@property (nonatomic, retain) UIToolbar *mainMenuToolBar;

//@property (nonatomic, retain) UIToolbar *consoleToolBar;
@property (nonatomic, retain) UINavigationBar *consoleNavBar;

@property (nonatomic, retain) EditSettingsViewController *editSettingsViewController;
@property (nonatomic, retain) FunctionSettingsViewController *functionSettingsViewController;
@property (nonatomic, retain) ConsoleViewController *consoleViewController;

@property (nonatomic) NSInteger currentMode;
@property (nonatomic, retain) UserSetting *userSetting;

//- (IBAction)settingsView:(id)sender;
- (void)settingsView;
- (void)mainMenuFromSettingsView;
- (IBAction)functionSettingsView:(id)sender;
- (IBAction)consoleView;
- (IBAction)toggleDelete;
- (IBAction)consoleViewSendEmail;
- (IBAction)mainMenuFromConsoleView;
- (void)setUserSetting:(UserSetting *)userSetObj;

@end
